package course8;

import course9.Method;

public class CatTest {
    public static void main(String[] args) {

        Method c = new Method();
        c.tianTi(4600);

        Cat cat1 = new Cat();
        cat1.setName("傻甜小白");
        cat1.setAge(2);
        cat1.setSex("母猫");
        cat1.setWeight("1.0kg");

        System.out.println("小猫咪的名字：" + cat1.getName());
        System.out.println("小猫咪的年龄：" + cat1.getAge());
        System.out.println("小猫咪的性别：" + cat1.getSex());
        System.out.println("小猫咪的体重：" + cat1.getWeight());

        Cat cat2 =new Cat();
        cat2.setName("饥渴大黑");
        cat2.setAge(6);
        cat2.setSex("公猫");
        cat2.setWeight("100.0kg");

        for(int d = 0; d < 5; d++) {
            System.out.println(" ");
        }
       // System.out.println();
        System.out.println("窗外大猫的名字：" + cat2.getName());
        System.out.println("窗外大猫的年龄：" + cat2.getAge());
        System.out.println("窗外大猫的性别：" + cat2.getSex());
        System.out.println("窗外大猫的体重：" + cat2.getWeight());

        Cat cat3 = new Cat("Tom", 17);
        System.out.println(cat3.getName() + cat3.getAge());
    }
}
